package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

/**
 * 作者：SimGa
 * 日期：2021/1/8
 * 时间：18:30
 * 包名：com.vitabuybuy.tv.dto
 */
public class GroupBuyOrderListDto {

    /**
     * thumbnail : http://106.55.47.138/attachment/jpg/1359/759_13779.jpg
     * name : {"EN":"nikedunk","CN":"nikedunk","MA":"nikedunk"}
     * id : 61
     */

    private ProductBean product;
    /**
     * product : {"thumbnail":"http://106.55.47.138/attachment/jpg/1359/759_13779.jpg","name":"{\"EN\":\"nikedunk\",\"CN\":\"nikedunk\",\"MA\":\"nikedunk\"}","id":61}
     * memberQuantity : 1
     * expireTime : 2021-01-31 00:00:00
     * createTime : 2021-01-08 18:16:02
     * id : 8
     * memberLimit : 5
     */

    private int memberQuantity;
    private String expireTime;
    private String createTime;
    private int id;
    private int gainQuantity;
    private int memberLimit;

    public int getGainQuantity() {
        return gainQuantity;
    }

    public void setGainQuantity(int gainQuantity) {
        this.gainQuantity = gainQuantity;
    }


    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getMemberQuantity() {
        return memberQuantity;
    }

    public void setMemberQuantity(int memberQuantity) {
        this.memberQuantity = memberQuantity;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMemberLimit() {
        return memberLimit;
    }

    public void setMemberLimit(int memberLimit) {
        this.memberLimit = memberLimit;
    }

    public static class ProductBean {
        private String thumbnail;
        private String name;
        private int id;

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }
}
